import { Injectable } from '@angular/core';

import { Http } from '@angular/http';

@Injectable()

export class DashCategorysService {

  constructor(private http: Http) { }

  

   get(cat){

    let data:any = {
      rows:30,
      start:0,
      brandName: '""',
      categoryId: cat.categoryId
    };

    return this.http.get('/qbmf/api/catBrand/getCatBrands',{search:data});
  }

  getDouble(cat){
    // http://localhost:4200/qbmf/v2/api/active/getStatsDouble11ProductByCategory?category=50019780

    let data:any = {

      category: cat.categoryId
    };

    return this.http.get('/qbmf/v2/api/active/getStatsDouble11ProductByCategory',{search:data});
  }


}
